package com.ctrip.study.refactor.moveMethod;

public class Account {

	double overdraftCharge() { // 译注：透支金计费，它和其他class的关系似乎比较密切。
		return _type.overdraftCharge(_daysOverdrawn);
	}

	double bankCharge() {
		double result = 4.5;
		if (_daysOverdrawn > 0)
			result += overdraftCharge();
		return result;
	}

	private AccountType _type;

	private int _daysOverdrawn;
}
